package com.cgly.medical.service;

import com.cgly.medical.domain.Account;
import com.cgly.medical.domain.Doctor;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author wangxiangli
 * @create 2022-08-16-16:08
 */
public interface DoctorService {
    //查询所有医生的信息
    List<Doctor> selectAll(Doctor doctor);


    Doctor selectDoctorByid(String id);

    int updateDoctorInfo(Doctor doctor);

    int deleteDoctorinfo(String id);

    int addDoctorinfo(Doctor doctor);

    Account selectAccountByPhone(String phone);

    List<Doctor> selectByTypeId(Integer typeId);

    //整合easyexcel批量导入医师
    void BatchaddDoctors(MultipartFile file, DoctorService doctorService);

    //通过phone查找doctor对象
    Doctor selectDoctorByPhone(String phone);

    Long getDoctorId(String username);
}
